package com.netctoss.account.entity;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Set;

import com.netctoss.service.entity.Service;

public class Account {

	private Integer id;
	private Integer recommenderId;
	private String loginName;
	private String loginPassword;
	private String status;
	private Timestamp createDate;
	private Timestamp pauseDate;
	private Timestamp closeDate;
	private String realName;
	private String idcardNo;
	private Timestamp birthdate;
	private String gender;
	private String occupation;
	private String telephone;
	private String email;
	private String mailaddress;
	private String zipcode;
	private String qq;
	private Timestamp lastLoginTime;
	private String lastLoginIp;
	private String pauseSimpleDate;
	private String birthD;
	private String createD;

	private Set<Service> services;
	
	public Set<Service> getServices() {
		return services;
	}

	public void setServices(Set<Service> services) {
		this.services = services;
	}

	public String getCreateD() {
		createD = createDate.toString();
		return createD;
	}

	public String getBirthD() {
		birthD = birthdate.toString();
		return birthD;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRecommenderId() {
		return recommenderId;
	}

	public void setRecommenderId(Integer recommenderId) {
		this.recommenderId = recommenderId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getLoginPassword() {
		return loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getIdcardNo() {
		return idcardNo;
	}

	public void setIdcardNo(String idcardNo) {
		this.idcardNo = idcardNo;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMailaddress() {
		return mailaddress;
	}

	public void setMailaddress(String mailaddress) {
		this.mailaddress = mailaddress;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}

	public String getPauseSimpleDate() {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		pauseSimpleDate = format.format(pauseDate);
		return pauseSimpleDate;
	}
	
	public Timestamp getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getPauseDate() {
		return pauseDate;
	}

	public void setPauseDate(Timestamp pauseDate) {
		this.pauseDate = pauseDate;
	}

	public Timestamp getCloseDate() {
		return closeDate;
	}

	public void setCloseDate(Timestamp closeDate) {
		this.closeDate = closeDate;
	}

	public Timestamp getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Timestamp birthdate) {
		this.birthdate = birthdate;
	}

	public Timestamp getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Timestamp lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public void setPauseSimpleDate(String pauseSimpleDate) {
		this.pauseSimpleDate = pauseSimpleDate;
	}

	@Override
	public String toString() {
		return "Account [id=" + id + ", recommenderId=" + recommenderId
				+ ", loginName=" + loginName + ", loginPassword="
				+ loginPassword + ", status=" + status + ", createDate="
				+ createDate + ", pauseDate=" + pauseDate + ", closeDate="
				+ closeDate + ", realName=" + realName + ", idcardNo="
				+ idcardNo + ", birthdate=" + birthdate + ", gender=" + gender
				+ ", occupation=" + occupation + ", telephone=" + telephone
				+ ", email=" + email + ", mailaddress=" + mailaddress
				+ ", zipcode=" + zipcode + ", qq=" + qq + ", lastLoginTime="
				+ lastLoginTime + ", lastLoginIp=" + lastLoginIp
				+ ", pauseSimpleDate=" + pauseSimpleDate + ", birthD=" + birthD
				+ ", createD=" + createD + "]";
	}
	
	
	
}
